package com.seednia.foundation.framework.util;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlType;

@XmlType( name="DateRange")
/**
 * Class that contains a range of two dates.
 */
public class DateRange implements IDateRangable, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5721571523492675509L;
	
	protected Date dtRangeFrom = null;
	protected Date dtRangeTo = null;
	
	protected String dtRangeOf = null; // Range (e.g. property name) 
	
	@Override
	public Date getDateFrom() {
		return dtRangeFrom;
	}
	@Override
	public void setDateFrom(Date dtRangeFrom) {
		this.dtRangeFrom = dtRangeFrom;
	}

	@Override
	public Date getDateTo() {
		return dtRangeTo;
	}
	@Override
	public void setDateTo(Date dtRangeTo) {
		this.dtRangeTo = dtRangeTo;
	}

	@Override
	public String getDateRangeOf() {
		return dtRangeOf;
	}
	@Override
	public void setDateRangeOf(String dtRangeOf) {
		this.dtRangeOf = dtRangeOf;
	}
	
}
